<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head></h:head>
<h:body>

	<p:toolbar id="menuPrincipal1"
		style="margin:0 !important;height:50px !important">

		<p:toolbarGroup align="left">
			<h:panelGrid columns="2">
				<p:commandLink action="/paginas/index.jsf?faces-redirect=true">
					<p:graphicImage value="/imagens/logo.png" height="50px"
						width="50px" onmouseover="style.cursor='pointer'"></p:graphicImage>
				</p:commandLink>

				<p:outputLabel value="Jvet - Clínica Veterinária"
					style="font-style: italic;font-size:18px"></p:outputLabel>
			</h:panelGrid>
		</p:toolbarGroup>

		<p:toolbarGroup align="right">

			<h:panelGrid columns="1" cellspacing="2">
				<h:panelGrid columns="2">
					<p:outputLabel value="Usuário: " rendered="#{loginMB.loggedIn}" />

					<p:outputLabel value="#{loginMB.usuarioLogado.nome}"
						rendered="#{loginMB.loggedIn}" />
				</h:panelGrid>
				<h:panelGrid columns="2">
					<p:commandLink id="btnLogout" title="Sair"
						action="#{loginMB.doLogout}">
						<p:graphicImage value="/imagens/sair.png" height="18px"
							width="18px" onmouseover="style.cursor='pointer'"></p:graphicImage>
					</p:commandLink>
					<p:outputLabel value="Sair"></p:outputLabel>
				</h:panelGrid>
			</h:panelGrid>
		</p:toolbarGroup>
	</p:toolbar>


</h:body>

</html>

